package com.wanshi.client;


import com.wanshi.client.impl.ProductsClientImpl;
import com.wanshi.entity.Products;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author 顽石教育-www.wanshi.com
 * @since 2021-12-22
 */
@FeignClient(value = "prod-server",fallback = ProductsClientImpl.class,path = "/products")
//@RequestMapping("/products")
public interface ProductsClient {


    @GetMapping("/num/{orderid}")
    public List<Products> findProdsAndNumByOrderId(@PathVariable String orderid);

}

